package com.itkaien.Aop;


import com.itkaien.Aop.service.UserService;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestDemo {

    @Test
    public void test() {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext();
        annotationConfigApplicationContext.scan("com.itkaien.Aop");
        annotationConfigApplicationContext.refresh();
        UserService userService = (UserService) annotationConfigApplicationContext.getBean("userServiceImplAnno");
        userService.show();
    }
}
